<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%-- 
    Document   : addLeague
    Created on : 29.4.2011, 13:40:51
    Author     : Football-Statistics Team
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>

<f:setLocale value="${pageContext.request.locale}"/>
<f:setBundle basename="labelsBundle" />

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><f:message key="project_title" /></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" href="../css/admin.css" />
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
        <script type="text/javascript" src="../js/adminmenu.js"></script>
    </head>
    <body>
        <%@include file="adminmenu.jsp" %>  
        <h2><f:message key="add_league" /></h2>
        <c:if test="${not empty error}">
            <div class="error">
                <c:out value="${error}"/>
            </div>
        </c:if>
        <c:if test="${not empty success}">
            <div class="success">
                <c:out value="${success}"/>
            </div>
        </c:if>
        <ul id="nav">
            <li><a href="${pageContext.request.contextPath}/administration/add-league" target="_self"><f:message key="add_league" /></a></li>
            <li><a href="${pageContext.request.contextPath}/administration/remove-league" target="_self"><f:message key="remove_league" /></a></li>
            <li><a href="${pageContext.request.contextPath}/administration/edit-league" target="_self"><f:message key="edit_league" /></a></li>
        </ul>        
        <form action="${pageContext.request.contextPath}/administration/add-league" method="post">            
                
                <div class="box">
                    <label><f:message key="league"/></label>
                    <input type="text" name="league" value="${name}"/>
                </div>
                 <div class="box">
                    <label><f:message key="season"/></label>
                    <input type="text" name="season" value="${season}"/>
                </div>
                 <div class="box">
                    <label>ID</label>
                    <input type="text" name="id" value="${id}"/>
                </div>
                 <div class="box">
                    <label>Parser URL</label>
                    <input type="text" name="url" value="${url}"/>
                </div>
                
            <f:message key="add_league" var="add"/>
            <input id="button" type="submit" value="${add}"/>
        </form>
    </body>
</html>
